import request from '@/utils/request'
const BASE_URL = '/apis'

// 查询admin用户列表
export function getUserList() {
  return request({
    url: BASE_URL + '/api/v1/authorization/users',
    method: 'get'
  })
}

// 用户操作-管理员
export function handleUser(method, data) {
  return request({
    url: BASE_URL + '/api/v1/authorization/users',
    method: method,
    data: data
  })
}

// 用户操作-平台用户
export function handlePlateFormUser(method, data, param = '') {
  return request({
    url: BASE_URL + '/api/v1/user_center/manage' + param,
    method: method,
    data: data
  })
}
